package com.charm.information.api

import com.charm.codes.nethard.RetrofitFactory

/**
 * Created by tools on 2018/1/3.
 */
class WatercressServiceManager {
    companion object {
        private var service: WatercressService? = null
        @Synchronized
        fun watercressService(): WatercressService = service?.let { service }
                ?: RetrofitFactory.build("http://120.76.205.241:8000").create<WatercressService>(WatercressService::class.java!!)
    }

}